import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import './assets/css/global.css' // 引入全局样式
import ElementPlus from 'element-plus'
import 'element-plus/lib/theme-chalk/index.css'
import axios from 'axios'

const app = createApp(App)
app.use(ElementPlus)
app.use(router)
app.mount('#app')

// axios的配置
axios.defaults.baseURL = '/api'// 配置访问的根目录(注意这里要在前面写上http,要不然就会拼接到localhost后面)
app.config.globalProperties.$http = axios// 将 axios 绑定到 $http 上
